package com.rc.pojo.po;

import com.mybatisflex.annotation.Column;
import com.mybatisflex.annotation.Id;
import com.mybatisflex.annotation.KeyType;
import com.mybatisflex.annotation.Table;
import com.mybatisflex.core.handler.JacksonTypeHandler;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.util.List;

@Data
@Builder
@NoArgsConstructor
@AllArgsConstructor
@Table(value = "game", schema = "rc")
public class Game {
    @Id(keyType = KeyType.Auto)
    private Long id;

    private String content;

    private String picture;

    private String video;

    @Column(typeHandler = JacksonTypeHandler.class)
    private List<GameOption> options;

    private Long plantId;
}

